import request from '@/utils/request'


// 服务类型
export function getServerTypes() {
  return request({
    url: '/vanger/skcommon/getServerTypes/',
    method: 'get'
  })
}

// 产品类型
export function getProductCategorys() {
  return request({
    url: '/vanger/skcommon/getProductCategorys/',
    method: 'get'
  })
}

// 产品名称
export function getProducts(categoryId) {
  return request({
    url: '/vanger/skcommon/getProducts/' + categoryId,
    method: 'get'
  })
}

// 配件类型
export function getPartTypes() {
  return request({
    url: '/vanger/skcommon/getPartTypes/',
    method: 'get'
  })
}

// 区域
export function getAreas(parentId) {
  return request({
    url: '/vanger/skcommon/getAreas/' + parentId,
    method: 'get'
  })
}

// 区域选项
export function getAreaOptions() {
  return request({
    url: '/vanger/skcommon/getAreaOptions/',
    method: 'get'
  })
}


// 配件
export function getParts(typeId) {
  return request({
    url: '/vanger/skcommon/getParts/' + typeId,
    method: 'get'
  })
}


// 产品选项
export function getProductOptions() {
  return request({
    url: '/vanger/skcommon/getProductOptions/',
    method: 'get'
  })
}